package com.framework.base;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.navigation.fragment.NavHostFragment;

import com.framework.base.databinding.FragmentFirstBinding;
import com.linliangxu.framework.base.SimpleFragment;

public class FirstFragment extends SimpleFragment<FragmentFirstBinding> {


    public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        views.buttonFirst.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                NavHostFragment.findNavController(FirstFragment.this)
                        .navigate(R.id.action_FirstFragment_to_SecondFragment);
            }
        });
    }


    @Override
    protected void initial() {

    }

}